home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist6.3 / ViewKit_dev.idb / usr / include / Vk / VkVuMeter.h.z / VkVuMeter.h
Encoding:
C/C++ Source or Header  |  1996-09-20  |  2.2 KB  |  57 lines

  1. ////////////////////////////////////////////////////////////////////////////////
  2. ///////   Copyright 1992, Silicon Graphics, Inc.  All Rights Reserved.   ///////
  3. //                                                                            //
  4. // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;     //
  5. // the contents of this file may not be disclosed to third parties, copied    //
  6. // or duplicated in any form, in whole or in part, without the prior written  //
  7. // permission of Silicon Graphics, Inc.                                       //
  8. //                                                                            //
  9. // RESTRICTED RIGHTS LEGEND:                                                  //
  10. // Use,duplication or disclosure by the Government is subject to restrictions //
  11. // as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data     //
  12. // and Computer Software clause at DFARS 252.227-7013, and/or in similar or   //
  13. // successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -    //
  14. // rights reserved under the Copyright Laws of the United States.             //
  15. //                                                                            //
  16. ////////////////////////////////////////////////////////////////////////////////
  17. #ifndef VKVUMETER_H
  18. #define VKVUMETER_H
  19.  
  20. #include <Vk/VkComponent.h>
  21.  
  22. class VkVuMeter : public VkComponent {
  23.  
  24.   public:
  25.  
  26.     VkVuMeter(const char *name, Widget parent);
  27.     ~VkVuMeter();
  28.     
  29.     void setValue(int value, int peak);
  30.     
  31.     virtual const char* className();
  32.  
  33.     static VkComponent *CreateVkVuMeter(const char *name, Widget parent);
  34.   
  35.   protected:
  36.  
  37.     void expose();
  38.     void resize();
  39.  
  40.     static void expose_stub(Widget w, XtPointer clientData, XtPointer callData);
  41.     static void resize_stub(Widget w, XtPointer clientData, XtPointer callData);
  42.     
  43.     int _granularity;
  44.     int _spacing;
  45.     int _size;
  46.     int _max;
  47.     int _interval;
  48.     int _lastValue, _lastPeak;
  49.     int _numReds, _numYellows, _numGreens;
  50.     Dimension _width, _height, _segmentSize, _segmentSpacing, _topMargin;
  51.     GC _gcRed, _gcGreen, _gcYellow;
  52.     Boolean _drawSides, _peakBlock;
  53.     int _sideThickness, _sideSpacing, _peakHeight;
  54. }; 
  55.  
  56. #endif
  57.